import 'package:flutter/material.dart';
import 'dart:async';
import 'dart:math';

class AuthService {
  Future<bool> login() async {
    return await new Future<bool>.delayed(
      new Duration(
        seconds: 2
      ), () => Random().nextBool()
    );
  }

  Future<void> logout() async {
    return await new Future<void>.delayed(
      new Duration(
        seconds: 1
      )
    );
  }
}